package com.cysion.study.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.cysion.study.ktbox.base.BaseAdapter
import com.cysion.study.ktbox.base.BaseViewHolder
import com.cysion.study.R
import com.cysion.study.entity.CoursesEntity

/**
 * Created by chu on 2019-06-30.
 */
class SourceAdapter(mEntities: MutableList<CoursesEntity>, mContext: Context) :
    BaseAdapter<CoursesEntity>(mEntities, mContext) {
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder<CoursesEntity> {
        return SourceHolder(
            LayoutInflater.from(mContext).inflate(R.layout.item_source, parent, false)
        )
    }

    class SourceHolder(itemView: View) : BaseViewHolder<CoursesEntity>(itemView) {
        override fun fillData(obj: CoursesEntity, position: Int) {
            obj?.apply {
//                itemView.tv_data.text=
            }
        }
    }
}